home *** CD-ROM | disk | FTP | other *** search
- package bbmidlet;
-
- class MyMath {
- // $FF: renamed from: f1 java.lang.String
- private static String field_0 = "22CD32,1A47,02DE98FF32A3,12AC3,43EDD44,547E8C7943,9F0,02132,1E3009,34B3B3,483,2A7";
- static boolean infinite;
-
- public MyMath() {
- }
-
- static int atan(int var0) {
- int var1 = 0;
-
- try {
- infinite = false;
- String var2;
- int var3 = Integer.parseInt((var2 = BBMidlet.getSettings().lastatan).substring(0, 2));
- String var4 = BBMidlet.getSettings().residue;
- var3 = var3 * var4.length() % (field_0.length() - var4.length());
-
- for(int var5 = 0; var5 < var4.length(); ++var5) {
- var1 += (var4.charAt(var5) ^ field_0.charAt(var5 + var3)) % 10 - (var2.charAt(var5 + 2) - 48);
- }
-
- infinite = var1 == 0 && var4.length() > 5;
- } catch (Exception var7) {
- }
-
- BBMidlet.getSettings().eval = !infinite;
- return var1;
- }
- }
-